import request from '@/utils/request.js'

export const getCommentList = (params) =>
  request.get(`/comment/page`, {
    params
  })

export const saveOrUpdateComment = (params) => request.post(`/comment`, params)

export const deleteComment = (ids) =>
  request.delete(`/comment/del/batch`, { data: ids })

export const getComment = (songId) => request.get(`/comment/song/${songId}`)
